package checking;

import java.security.SecureRandom;

public class IdGenerator {

	public int generateId(){
		
		int randomId=0;
		
		try {
			SecureRandom number = new SecureRandom();
			randomId = 1+number.nextInt(500);
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
		return randomId;
	}

}
